<?=view("home.header")?>
<?=view("home.nav")?>
<div class="content-wrapper">
    <div class="container">
        <div class="row pad-botm">
            <div class="col-md-12">
                <h4 class="header-line">会员信息修改</h4>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12 col-xs-12 col-sm-12">
                <form role="form">
                <div class="panel panel-info">
                    <div class="panel-heading">
                           基本信息
                    </div>
                    <div class="panel-body">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <div class="form-group">
                                <label>会员姓名</label>
                                <input class="form-control" type="text" value="<?=$user->Mu_Name?>" readonly="readonly" required="required">
                            </div>
                            <div class="form-group">
                                <label>性别</label>
                                <select class="form-control" name="Mu_sex">
                                    <option value="男" <?=($user->Mu_sex == '男') ? "selected='selected'": "";?>>男</option>
                                    <option value="女" <?=($user->Mu_sex == '女') ? "selected='selected'": "";?>>女</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label>年龄</label>
                                <input class="form-control" type="number" min="15" max="150" name="Mu_Age" value="<?=$user->Mu_Age?>">
                            </div>
                            <div class="form-group">
                                <label>手机</label>
                                <input class="form-control" type="text" name="Mu_Mobile" maxlength="11" value="<?=$user->Mu_Mobile?>" required="required">
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <div class="form-group">
                                <label>邮编</label>
                                <input class="form-control" type="text" name="Mu_Code" value="<?=$user->Mu_Code?>">
                            </div>
                            <div class="form-group">
                                <label>证件编号</label>
                                <input class="form-control" type="text" name="Mu_CardNo" value="<?=$user->Mu_CardNo?>">
                            </div>
                            <div class="form-group">
                                <label>会员地址</label>
                                <input class="form-control" type="text" name="Mu_Address" value="<?=$user->Mu_Address?>" required="required">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-info">
                    <div class="panel-heading">会员账号信息</div>
                    <div class="panel-body">
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <div class="form-group">
                                <label>开户银行</label>
                                <select class="form-control" name="Mu_OpenBank">
                                    <?php foreach ($banks as $bank): ?>
                                    <option value="<?=$bank->Mb_Bank?>" <?=($user->Mu_OpenBank == $bank->Mb_Bank) ? "selected='selected'": "";?>><?=$bank->Mb_Bank?></option>
                                    <?php endforeach; ?>
                                </select>
                            </div>
                            <div class="form-group">
                                <label>银行卡号</label>
                                <input class="form-control" type="text" name="Mu_OpenBankNo" value="<?=$user->Mu_OpenBankNo?>">
                            </div>
                        </div>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <div class="form-group">
                                <label>银行开户名</label>
                                <input class="form-control" type="text" name="Mu_OpenBankName" value="<?=$user->Mu_OpenBankName?>">
                            </div>
                            <div class="form-group">
                                <label>开户地址</label>
                                <input class="form-control" type="text" name="Mu_OpenBankUrl" value="<?=$user->Mu_OpenBankUrl?>">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-info">
                    <div class="panel-heading">验证安全信息</div>
                    <div class="panel-body">
                        <div class="form-group">
                            <label>请输入二级密码</label>
                            <input class="form-control" type="password" name="Mu_TwoPwd">
                        </div>
                        <input type="submit" class="btn btn-info" value="提交修改"/>
                        {{csrf_field()}}
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>
<?=view("home.footer")?>
